package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.MemDAO;
import com.sds.shop.vo.MemVO;

public class ModifyMemFormAction extends Action {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
		String memId = request.getParameter("memId");
		
		MemVO vo = new MemVO();
		MemDAO dao = new MemDAO();
		
		vo = dao.getCustomer(memId);
		HttpSession session = request.getSession();
		session.setAttribute("memvo", vo);
		HttpUtil.forward(request, response, "/jsp/modifymem.jsp");
	}

}
